package com.team.easybuy.mapper;

import com.team.easybuy.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {

    User checkLogin(User user);

    int countUserbyParams(Map<String, Object> params);

    int insertUser(User user);

    int updateUser(User user);

    User selectById(Integer id);

    int updatePwd(Map<String, Object> params);

    User selectByNameAndPwd(Map<String, Object> params);

    List<User> selectByPage(Map<String, Object> params);

    int updateUserType(User user);

    int deleteById(Integer id);

    User selectUserByMobile(String mobile);

    User selectUserByEmail(String email);
}
